package test.y2019.october;

import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.Month;
import cn.hutool.core.lang.Console;
import cn.hutool.core.util.RandomUtil;

/**
 * Created By  醉美柳舞之众星捧月
 *
 * @author song
 * @date 2019/10/8 17:43
 */
public class October2 {
    public static void main(String[] args) {

        /* 生成一个指定范围内的随机数 */

        final int i = RandomUtil.randomInt(111111, 999999);
        Console.error(i);
        Console.error(1 << 9);


        Month month = new DateTime().monthEnum();
        Console.error(month.name());
        Console.error(month.getValue());

        String cp = "CP012345";
        Console.error(cp.substring(0, 2));
        Console.error(cp.substring(2));


    }
}
